<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link href="/home/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/static/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/static/h-ui.admin/css/style.css" />
<link href="/static/css/bootstrap-colorpicker.css" rel="stylesheet">
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>主题色 - H-ui.admin v3.1</title>
<meta name="keywords" content="H-ui.admin v3.1,H-ui网站后台模版,后台模版下载,后台管理系统模版,HTML后台模版下载">
<meta name="description" content="H-ui.admin v3.1，是一款由国人开发的轻量级扁平化网站后台模板，完全免费开源的网站后台管理系统模版，适合中小型CMS后台系统。">
<style type="text/css">
	input,.select-box{width:150px !important;}
	.input-group-addon{width:unset;}
	.formControls i{font-size:10px;color:#999;}
</style>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>系统设置<span class="c-gray en">&gt;</span> 主题色 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
	<form class="form form-horizontal" id="form-admin-add">
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">小程序主题色：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<div id="xcxbac" class="input-group colorpicker-component">
					<input type="text" class="input-text" value="{$data.backcolor}" placeholder="颜色" id="backcolor" name="backcolor">
					<span class="input-group-addon"><i></i></span>
				</div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">小程序顶部颜色：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<div id="xcxtop" class="input-group colorpicker-component">
					<input type="text" class="input-text" value="{$data.themecolor}" placeholder="颜色" id="themecolor" name="themecolor">
					<span class="input-group-addon"><i></i></span>
				</div>
			</div>
		</div>
		<div class="row cl" id="sad">
			<label class="form-label col-xs-3 col-sm-2">小程序顶部字体颜色：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<span class="select-box">
					<select name="themefont" id="themefont" class="select">
					  	<option value="1" {if $data.themefont==1}selected{/if}>&nbsp;黑&nbsp;</option>
					  	<option value="2" {if $data.themefont==2}selected{/if}>&nbsp;白&nbsp;</option>
					</select>
				</span>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">小程序底部tabBar字体颜色：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<div id="xcxbot" class="input-group colorpicker-component">
					<input type="text" class="input-text" value="{$data.bottomcolor}" placeholder="颜色" id="bottomcolor" name="bottomcolor">
					<span class="input-group-addon"><i></i></span>
				</div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2"><span class="c-red">首页搜索框：</span></label>
			<div class="formControls col-xs-8 col-sm-9">
               <label class="radio-inline">
                   <input type="radio" id="emailwy1" name="search_state" value="1" {if $data['search_state']==1}checked{/if} style="width:13px !important;margin:unset;margin-left:-20px;margin-top:5px;" />
                   <label for="emailwy1">启用</label>
               </label>
               <label class="radio-inline">
                   <input type="radio" id="emailwy2" name="search_state" value="2" {if $data['search_state']==2 || $data['search_state']==0 || empty($data['search_state'])}checked{/if} style="width:13px !important;margin:unset;margin-left:-20px;margin-top:5px;" />
                   <label for="emailwy2">禁用</label>
               </label>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2"><span class="c-red">幻灯片自定义尺寸：</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<i>宽：</i>
				<input type="number" min="0" class="input-text" value="{$data.bannerw}" placeholder="宽" id="bannerw" name="bannerw">
				<i>高：</i>
				<input type="number" min="0" class="input-text" value="{$data.bannerh}" placeholder="高" id="bannerh" name="bannerh">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2"><span class="c-red">首页导航自定义：</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<i>图标尺寸：</i>
				<input type="number" min="0" class="input-text" value="{$data.inavs}" placeholder="图标尺寸" id="inavs" name="inavs">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2"><span class="c-red">底部导航自定义：</span></label>
			<div class="formControls col-xs-8 col-sm-9">
				<i>导航栏高：</i>
				<input type="number" min="0" class="input-text" value="{$data.bnavh}" placeholder="导航栏高" id="bnavh" name="bnavh">
				<i>图标尺寸：</i>
				<input type="number" min="0" class="input-text" value="{$data.bnavs}" placeholder="图标尺寸" id="bnavs" name="bnavs">
			</div>
		</div>
    	<div class="col-sm-12" style="margin:10px auto;"><hr></div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">PC首页导航栏颜色：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<div id="pcnav" class="input-group colorpicker-component">
					<input type="text" class="input-text" value="{$data.pcnavcolor}" placeholder="颜色" id="pcnavcolor" name="pcnavcolor">
					<span class="input-group-addon"><i></i></span>
				</div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">PC导航栏字体颜色：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<div id="pcnavfont" class="input-group colorpicker-component">
					<input type="text" class="input-text" value="{$data.pcnavfontcolor}" placeholder="颜色" id="pcnavfontcolor" name="pcnavfontcolor">
					<span class="input-group-addon"><i></i></span>
				</div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">PC导航栏字体选中颜色：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<div id="pcnavfonts" class="input-group colorpicker-component">
					<input type="text" class="input-text" value="{$data.pcnavfontscolor}" placeholder="颜色" id="pcnavfontscolor" name="pcnavfontscolor">
					<span class="input-group-addon"><i></i></span>
				</div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">PC模板主题颜色：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<div id="pctheme" class="input-group colorpicker-component">
					<input type="text" class="input-text" value="{$data.pcthemecolor}" placeholder="颜色" id="pcthemecolor" name="pcthemecolor">
					<span class="input-group-addon"><i></i></span>
				</div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">PC页脚背景颜色：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<div id="pcbottom" class="input-group colorpicker-component">
					<input type="text" class="input-text" value="{$data.pcbottomcolor}" placeholder="颜色" id="pcbottomcolor" name="pcbottomcolor">
					<span class="input-group-addon"><i></i></span>
				</div>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-3 col-sm-2">PC页脚字体颜色：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<div id="pcbottomfont" class="input-group colorpicker-component">
					<input type="text" class="input-text" value="{$data.pcbottomfontcolor}" placeholder="颜色" id="pcbottomfontcolor" name="pcbottomfontcolor">
					<span class="input-group-addon"><i></i></span>
				</div>
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</article>

<!--_footer 作为公共模版分离出去--> 
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="/static/js/bootstrap-colorpicker.js"></script>
<script type="text/javascript">
$(function () {
    $('#xcxbac,#xcxtop,#xcxbot,#pcnav,#pcnavfont,#pcnavfonts,#pctheme,#pcbottom,#pcbottomfont').colorpicker({useAlpha: false});
});
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$("#form-admin-add").validate({
		rules:{
		},
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
			$(form).ajaxSubmit({
				type: 'post',
				url: "{:url('themecolor')}",
				success: function(data){
					if(data.code==200){
						// var index = parent.layer.getFrameIndex(window.name);
						location.reload();
						// parent.layer.close(index);
					}else{
						layer.msg(data.msg,{icon:2,time:3000});
					}

				},
                error: function(XmlHttpRequest, textStatus, errorThrown){
					var index = parent.layer.getFrameIndex(window.name);
					parent.layer.close(index);
				}
			});
		}
	});
});
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>